<?php 

    require_once '../../Base.php'; 

    session_start();  

    $id = $_POST["id"]; 
    var_dump($id);  

    function __autoload($c) { 
        require_once("../../../../../../../.." . $_GET["includePath"]); 
    }

    $elem = $_SESSION["list"][$id]; 
    var_dump($elem);  
    foreach (array_keys($_POST) as $key) {  
        var_dump($key); 
        $elem->$key = $_POST[$key]; 
    }
    var_dump($elem); 
    $elem->edit(); 
?>
